# 导包
import app


# 创建接口类
class RenZhengAPI:
    # 初始化
    def __init__(self):
        self.url_renzhegn = app.BASE_URL + "/member/realname/approverealname"
        self.url_huoqurenzheng = app.BASE_URL + "/member/member/getapprove"
        self.url_getapprove = app.BASE_URL + "/member/member/getapprove"
        self.url_register = app.BASE_URL + "/trust/trust/register"

    def renzheng(self, session, renzheng_data, file):
        return session.post(self.url_renzhegn, data=renzheng_data, file=file)

    def huoqurenzheng(self, session):
        return session.post(self.url_huoqurenzheng)

    def getapprove(self, session):
        return session.post(self.url_getapprove)

    def register(self, session):
        return session.post(self.url_register)
